<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            height: 400px;
            width: 400px;
            border: 1px solid #000;
            /* 溢出滚动 */
            /* overflow: scroll; */
            /* 溢出隐藏 */
            overflow: hidden;
        }
        .inner{
            width: 400px;
            height: 800px;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="inner">
            111111111111111111111111111
            111111111111111111111111111
            111111111111111111111111111
            111111111111111111111111111
        </div>
    </div>
</body>
</html>